var mongoose = require('mongoose');

var member_users = new mongoose.Schema({
	mobile: {
		type: String,
		unique: true
	},
	userName: {
		type: String,
		default: '---'
	},
	passWord: String,
	teamId: String,
	teamName: String,
	level: {
		type: Number,
		default: 0
	},
	userAvatar: {
		type: String,
		default: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1629089538,987246310&fm=27&gp=0.jpg'
	},
	sex: {
		type: String,
		default: '男'
	},
	job: String,
	leader: String,
	department: String,
	entryDate:{
		type: Date,
		default: Date.now
	},
	createTime:{
		type: Date,
		default: Date.now
	}
})

mongoose.model('member_users', member_users);